package com.ld.mapper;

import com.ld.doamin.PageListQuery;
import com.ld.doamin.Permission;

import java.util.List;

public interface PermissionMapper {
    void deleteAll();

    void add(Permission permission);

    Long queryTotal(PageListQuery query);

    List<Permission> queryList(PageListQuery query);

    List<Permission> queryTree();

}
